<?php
#注册插件
RegisterPlugin("custom_levelname","ActivePlugin_custom_levelname");

function ActivePlugin_custom_levelname() {}
function InstallPlugin_custom_levelname() {
    global $zbp;
    $zbp->Config('custom_levelname')->level_1 = '管理员';
    $zbp->Config('custom_levelname')->level_2 = '网站编辑';
    $zbp->Config('custom_levelname')->level_3 = '作者';
    $zbp->Config('custom_levelname')->level_4 = '协作者';
    $zbp->Config('custom_levelname')->level_5 = '评论者';
    $zbp->Config('custom_levelname')->level_6 = '游客';
    $zbp->SaveConfig('custom_levelname');
}
function UninstallPlugin_custom_levelname() {}

if($GLOBALS['zbp']->Config('custom_levelname')->isuse){
$lang['user_level_name'] = array(
	'1' => $GLOBALS['zbp']->Config('custom_levelname')->level_1, //管理员
	'2' => $GLOBALS['zbp']->Config('custom_levelname')->level_2, //网站编辑
	'3' => $GLOBALS['zbp']->Config('custom_levelname')->level_3, //作者
	'4' => $GLOBALS['zbp']->Config('custom_levelname')->level_4, //协作者
	'5' => $GLOBALS['zbp']->Config('custom_levelname')->level_5, //评论者
	'6' => $GLOBALS['zbp']->Config('custom_levelname')->level_6,
);
}